package com.atguigu.dao;

import com.atguigu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    public List<User> findAll();

    public User findOne(@Param("id") String id);

    User saveUser(@Param("user") User user);

    User updateUser(@Param("user") User user);

    User deleteOne(@Param("id") String id);
}

